Police opened fire when the accused tried to escape after attacking escorts while being brought to Hyderabad for a court hearing.